package model

import (
	"base"
)

type Player struct {
	id     base.PlayerId
	gameId base.AgentId
	client *Client
}

func NewPlayer(id base.PlayerId, gameId base.AgentId) (result *Player) {
	result = new(Player)
	result.id = id
	result.gameId = gameId

	return
}

func (player *Player) Id() base.PlayerId {
	return player.id
}

func (player *Player) SetGameId(gameId base.AgentId) {
	player.gameId = gameId
}

func (player *Player) GameId() base.AgentId {
	return player.gameId
}

func (player *Player) SetClient(client *Client) {
	player.client = client
}

func (player *Player) Client() *Client {
	return player.client
}
